package com.z1.core.data.export.pdf.model;

public class PdfTableCell implements java.io.Serializable {

	private static final long serialVersionUID = 3070216497452294449L;
	
	//字段
	private String field = null;
	//行合并
	private int rowspan = 1;
	//列合并
	private int colspan = 1;
	//数据
	private String data = null;
	//列宽度
	private float width = 0;
		
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public PdfTableCell field(String field) {
		this.setField(field);
		return this;
	}
	
	public int getRowspan() {
		return rowspan;
	}
	public void setRowspan(int rowspan) {
		this.rowspan = rowspan;
	}
	public PdfTableCell rowspan(int rowspan) {
		this.setRowspan(rowspan);
		return this;
	}
	
	public int getColspan() {
		return colspan;
	}
	public void setColspan(int colspan) {
		this.colspan = colspan;
	}
	public PdfTableCell colspan(int colspan) {
		this.setColspan(colspan);
		return this;
	}
	
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public PdfTableCell data(String data) {
		this.setData(data);
		return this;
	}
	
	public float getWidth() {
		return width;
	}
	public void setWidth(float width) {
		this.width = width;
	}
	public PdfTableCell width(float width) {
		this.setWidth(width);
		return this;
	}
	
}
